package main;

import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

import remote.PokerRoom;
import client.DefaultPokerPlayer;

public class Main {

	public static void main(String[] args) {
		try {
			String name = "PokerRoomServant";
			Registry registry = LocateRegistry.getRegistry(9099);
			PokerRoom pokerRoom = (PokerRoom) registry.lookup(name);
			DefaultPokerPlayer defaultPokerPlayer = new DefaultPokerPlayer();
			pokerRoom.play(defaultPokerPlayer);
		} catch (Exception e) {
			System.err.println("PokerRoomServant exception:");
			e.printStackTrace();
		}
	}

}
